﻿import flash.display.BitmapData;
class cn.eminia.AS2.TxtBM {
	function TxtBM(tf, mc) {
		var txt_bmp:BitmapData = new BitmapData(tf._width, tf._height, true, 0x000000);
		txt_bmp.draw(tf);
		if (mc != null) {
			mc.attachBitmap(txt_bmp, 1, "always", true);
		} else {
			var show_mc = _root.createEmptyMovieClip("show_mc", 2);
			show_mc._x = tf._x;
			show_mc._y = tf._y;
			show_mc.attachBitmap(txt_bmp, 1, "always", true);
		}
		tf._visible = false;
		tf.removeTextField();
	}
}
